package com.hucheng.order.service;

import com.alipay.api.AlipayApiException;
import com.hucheng.common.exception.EduException;
import com.hucheng.order.vo.BalanceOrderVO;
import com.hucheng.order.vo.OrderInfoVO;

import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * @Author: 凉白开不加冰
 * @Version: 0.0.1V
 * @Date: 2019-07-17
 * @Description: 订单接口
 **/
public interface OrderService {
    OrderInfoVO submitOrder(Integer userId) throws EduException;

    BalanceOrderVO getBalanceOrder(Integer userId,String cartIds,Integer goodsId,Integer goodsNumber) throws EduException;

    void updateOrderStatus(Map<String,String> params) throws EduException;

    OrderInfoVO getOrderInfoByoutTradeNo(String outTradeNo);

    String queryAliOrder(String outTradeNo) throws UnsupportedEncodingException, AlipayApiException, com.alipay.api.AlipayApiException;

    void updateOrderStatus();
}
